package com.nervenets.general.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.experimental.SuperBuilder;

import java.io.Serializable;

/**
 * Created by joe on 17-4-5.
 */
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
public class FormBaseField implements Serializable {
    @ApiModelProperty(value = "字段")
    private String key;
    @ApiModelProperty(value = "名称")
    private String name;

    public FormBaseField(FormField formField) {
        this.key = formField.getKey();
        this.name = formField.getName();
    }
}
